export default {
    name: 'board',
    namespaced: true,
    state: {
        timeSwich: {
            startTime: '',
            endTime: '',
        },
        HeadNavTypes: 1,
        DetailType: 5,
        layoutimgurl: '',
        thisTheme: true
    },
    mutations: {
        timeSwichHandle(state, payload) {
            let { startTime, endTime } = payload;
            state.timeSwich = {
                startTime,
                endTime,
            };
        },
        HeadNavType(state, payload) {
            state.HeadNavTypes = payload
        },
        DetailType(state, payload) {
            state.DetailType = payload
        },
        thisTheme(state, Theme) {
            state.thisTheme = Theme
        },
        layoutimgurl(state, url) {
            state.layoutimgurl = url
        }
    },
};